package com.wealth.scsj.b_app.base;


import com.wealth.scsj.b_app.bean.SelectAppClass1Bean;
import com.wealth.scsj.b_app.bean.SelectAppGoodsByStoreAndClassBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 门店运营-展示一级分类
 * 门店运营-商品管理查看分类下的商品
 */

public class GoodsManageBase {

    public interface IView {

        /**
         * 门店运营-展示一级分类
         *
         * @param s
         * @param selectAppClass1Bean
         */
        void show1SuccessMsg(String s, SelectAppClass1Bean selectAppClass1Bean);

        /**
         * 门店运营-商品管理查看分类下的商品
         *
         * @param s
         * @param selectAppGoodsByStoreAndClassBean
         */
        void show2SuccessMsg(String s, SelectAppGoodsByStoreAndClassBean selectAppGoodsByStoreAndClassBean);

        void showErrorMsg(String s);
    }

    public interface IPresenter {
        /**
         * 门店运营-展示一级分类
         *
         * @param requestBody
         */
        void deliver1Data(RequestBody requestBody);

        /**
         * 门店运营-商品管理查看分类下的商品
         *
         * @param requestBody
         */
        void deliver2Data(RequestBody requestBody);

    }

    public interface IModel {
        /**
         * 门店运营-展示一级分类
         *
         * @param requestBody
         * @param callback
         * @return
         */
        Subscription get1Data(RequestBody requestBody, ResponseCallback<SelectAppClass1Bean> callback);

        /**
         * 门店运营-商品管理查看分类下的商品
         *
         * @param requestBody
         * @param callback
         * @return
         */
        Subscription get2Data(RequestBody requestBody, ResponseCallback<SelectAppGoodsByStoreAndClassBean> callback);

    }

}
